//部门相关的api接口
import requst from '@/utils/request'

export const getDeptList = () => requst.get('/depts');

export const saveDept = (data) => requst.post('/depts',data);

export const deleteDept = (id) => requst.delete(`/depts?id=${id}`);

//根据id查询部门信息
export const getDeptById = (id) => requst.get(`/depts/${id}`);

export const updateDept = (data) => requst.put('/depts',data);